/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticks.chromedome.subsystems;

import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;
import ticks.chromedome.RobotMap;
import ticks.chromedome.commands.PottyChairDown;

/**
 *
 * @author Jared
 */
public class PottyChair extends Subsystem {
    private static PottyChair instance = null;
    private Relay potty_chair_relay;
    
    public static PottyChair getInstance(){
        if(instance == null){
            instance = new PottyChair();
        }
        return instance;
    }
    private PottyChair(){
        potty_chair_relay = new Relay(RobotMap.POTTY_CHAIR_RELAY);
        potty_chair_relay.setDirection(Relay.Direction.kBoth);
    }
    
    public void pottyChairUp(){
        potty_chair_relay.set(Relay.Value.kForward);
    }
    public void pottyChairDown(){
        potty_chair_relay.set(Relay.Value.kReverse);
    }
    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
        setDefaultCommand(new PottyChairDown());
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
